package com.kaikeba.service.impl;

import com.kaikeba.bean.Student;
import com.kaikeba.mapper.StudentMapper;
import com.kaikeba.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    @Qualifier(value = "studentMapper")
    private StudentMapper studentMapper;

    @Override
    public int insertSelective(Student student) {
        return studentMapper.insertSelective(student);
    }

    @Override
    public Student selectByPrimaryKey(Integer studentid) {
        return studentMapper.selectByPrimaryKey(studentid);
    }

    @Override
    public int updateByPrimaryKeySelective(Student record) {
        return studentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer studentid) {
        return studentMapper.deleteByPrimaryKey(studentid);
    }

}
